package org.linlinjava.litemall.db.dao;

import org.apache.ibatis.annotations.Mapper;
import org.linlinjava.litemall.db.domain.DevicesRecord;

import java.util.List;

@Mapper
public interface DevicesRecordMapper {
    DevicesRecord selectById(Integer id);
    int insert(DevicesRecord record);
    int update(DevicesRecord record);
    int deleteById(Integer id);

    // 查询所有（用于分页）
    List<DevicesRecord> selectAll();

    // 按状态查询
    List<DevicesRecord> selectByStatus(String status);
}
